﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewCatalog.aspx.cs" Inherits="Portal_ViewCatalog" StylesheetTheme="ContentMS" Theme="ContentMS" %>

<%@ Register Src="../UserControls/Header.ascx" TagName="Header" TagPrefix="ucHeader" %>
<%@ Register Src="../UserControls/Tailer.ascx" TagName="Tailer" TagPrefix="ucTailer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>查看频道信息</title>
</head>
<body style="margin:0;">
    <form id="form1" runat="server">
    <table width="780" height="100%" class="GbText" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td width="780">
				<ucHeader:Header ID="SiteHeader" runat="server" />
			</td>
		</tr>			
		<tr>
			<td>
				<table width="780" height="100%" class="GbText"  border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="211" valign="top" style="height: 555px">
							<table width="211" height="100%" class="GbText"  border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td valign="middle" align="center" width="211" height="72">
										<table height="72" class="GbText" width="211" cellpadding="0" bgcolor="#EAE7E0" cellspacing="0">
											<tr>
												<td align="center" valign="middle" width="211" height="72">
													<table  width="199" class="GbText" height="68" background="../Images/second_sea.jpg" cellpadding="0" cellspacing="0" border="0">
														<tr>
															<td width="151" align="center" valign="middle"><font class="SearchKey">请输入搜索关键字</font><br />
																<asp:TextBox ID="SearchKey" runat="server" Width="135px" CssClass="InputCss"></asp:TextBox>
															</td>
															<td width="48" height="68" valign="middle"><asp:ImageButton ID="SearchBtn" runat="server" ImageUrl="~/Images/secondlogo.jpg" CausesValidation="False" OnClick="SearchBtn_Click" /></td>
														</tr>
													</table>
												</td>												
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td width="211" bgcolor="#EAE7E0" height="204" valign="middle">
										<table width="203" class="GbText" border="0" height="204" align="center" cellpadding="0" cellspacing="0">
											<tr>
												<td height="174" valign="top">
													<asp:GridView runat="server" BorderWidth="0" CellPadding="0" CellSpacing="0" ID="CatalogView" CssClass="GbText" AutoGenerateColumns="False" DataKeyNames="ID">
														<Columns>
															<asp:TemplateField>
																<ItemTemplate>
																	<table cellpadding="0" cellspacing="0" border="0">
																		<tr>
																			<td width="203" align="center" height="29" background="../Images/second_r10_c2.jpg">
																				<a href='<%# FormatCatalogUrl((int)Eval("UrlID"),Eval("Url").ToString(),(int)Eval("ID")) %>'><%# Eval("Name") %></a>
																			</td>
																		</tr>
																	</table>
																</ItemTemplate>
															</asp:TemplateField>
														</Columns>
													</asp:GridView>
												</td>
											</tr>											
										</table>
									</td>
								</tr>
								<tr>
									<td width="211" height="4" background="../Images/second_r12_c1.jpg">&nbsp;</td>
								</tr>
								<tr>
									<td height="390" background="../Images/second_r13_c1.jpg">&nbsp;</td>
								</tr>
							</table>
						</td>
						<td width="569" valign="top" style="height: 650px">
							<table width="569" class="GbText" height="100%"  border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="6" height="100%" background="../Images/second_r4_c4.jpg">&nbsp;</td>
									<td width="563" class="GbText" height="650" valign="top">
										<table width="563" class="GbText" height="25"  border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td width="563" height="25" background="../Images/second_r4_c5.jpg">
												&nbsp;<asp:SiteMapPath ID="smpCatalog" runat="server" PathSeparator=" >> " RenderCurrentNodeAsLink="True">
													<NodeStyle CssClass="contentdir" />
													</asp:SiteMapPath>
											</tr>
											<tr style="font-weight: bold;">
												<td width="563" background="../Images/second_r6_c5.jpg" valign="top" style="height: 625px">
													<asp:GridView ID="ContentView" runat="server" CellSpacing="5" CssClass="GbText" ShowHeader="False" AutoGenerateColumns="False" Width="100%" BorderWidth="0px" Style="font-weight: bold;" AllowPaging="True" PageSize="25">
														<Columns>
															<asp:TemplateField>
																<ItemTemplate>
																	<asp:Image ID="ContentImage" runat="server" ImageUrl="../Images/index_36.gif" />&nbsp;
																	<a href='<%# FormatContentUrl(Eval("Desn").ToString(),(Boolean)Eval("Type"),(int)Eval("ID"),(int)Eval("CatalogID")) %>' target='<%#FormatContentTarget((Boolean)Eval("Type")) %>' style="font-weight: bold;">
																		<%# SysOperation.FormatStringLength(Eval("Name").ToString(),SysInfomation.ContentNameLength) %>&nbsp;&nbsp;<font color="silver">(<%# Eval("CreateDate","{0:d}")%>)</font></a>
																</ItemTemplate>
															</asp:TemplateField>
														</Columns>
														<RowStyle Height="20px" HorizontalAlign="Left" VerticalAlign="Middle" />
														<PagerSettings Visible="False" />
													</asp:GridView>
												</td>
											</tr>
											<tr>
												<td align="center" id="PageTd" runat="server" width="563" background="../Images/second_r6_c5.jpg" style="height: 30px">
													<asp:Label ID="CurrentIndex" runat="server"></asp:Label>&nbsp;
													<asp:ImageButton ID="PrevBtn" runat="server" ImageUrl="~/Images/syy04-s.gif" CommandName="prev" OnCommand="PageBtn_Command" CausesValidation="False" />&nbsp;<asp:ImageButton ID="NextBtn" runat="server" ImageUrl="~/Images/syy05-x.gif" CommandName="next" OnCommand="PageBtn_Command" CausesValidation="False" />
													&nbsp;转移到<asp:TextBox ID="tbMove" runat="server" Width="30px" CssClass="InputCss">1</asp:TextBox>页<asp:RangeValidator ID="rvPage" runat="server" ControlToValidate="tbMove"
														Display="Dynamic" ErrorMessage="页码输入错误" MinimumValue="1" Type="Integer" MaximumValue="10000"></asp:RangeValidator><asp:RequiredFieldValidator ID="rfPage" runat="server" ControlToValidate="tbMove"
														Display="Dynamic" ErrorMessage="请输入页码"></asp:RequiredFieldValidator>
													<asp:ImageButton ID="ibtnMove" runat="server" CommandName="move" ImageUrl="~/Images/button.jpg"
															OnCommand="PageBtn_Command" />
												</td>
											</tr>
										</table>												
									</td>
								</tr>								
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="84" background="../Images/model(1.1)_r19_c1.jpg">
				<ucTailer:Tailer ID="Tailer" runat="server" />
			</td>
		</tr>
	</table>
    </form>
</body>
</html>
